package com.example.service;

import com.example.model.AddBlogInfoParam;
import com.example.model.BlogInfoResponse;
import com.example.model.UpBlogParam;
import jakarta.validation.constraints.NotNull;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: bjc
 * Date: 2025-07-31
 * Time: 21:46
 */
public interface BlogService {
    List<BlogInfoResponse> getList();

    BlogInfoResponse getBlogDetail(Integer blogId);

    Boolean addBlog(AddBlogInfoParam addBlogInfoParam);

    Boolean updateBlog(UpBlogParam upBlogParam);

    Boolean deleteBlog(@NotNull(message = "blogId不能为空") Integer blogId);
}
